package com.core.pojo.SeatReservation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.core.pojo.SeatReservation.Enum.ReservationStatusEnum;
import com.core.pojo.User.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 预约记录字段
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("reservation")
public class Reservation extends BaseDO implements Serializable {
    /**
     * 预约记录ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 教室ID
     */
    private Long classroomId;

    /**
     * 预约日期
     */
    private LocalDate date;

    /**
     * 时间段(如:08:00-12:00)
     */
    // private String timeSlot;

    /**
     * 预约状态 (ACTIVE, CANCELED, EXPIRED)
     */
    private ReservationStatusEnum status;
}